/* 
Scenic Graphics Library
Copyright (C) 2007 Jouni Tulkki

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USApackage scenic;
*/

package scenic.toolkit;

import scenic.toolkit.db.Property;
import scenic.toolkit.db.Record;

public class Font extends Record {
//	private java.awt.Font awtFont;
	private static Property<String> familyProperty = new Property<String>("family");
	private static Property<Double> sizeProperty = new Property<Double>("size");
	
	public Font(String family, double size) {
		setFamily(family);
		setSize(size);
	}
	
	public void setFamily(String family) {
		familyProperty.set(this, family);
	}
	
	public String getFamily() {
		return familyProperty.get(this);
	}
	
	public void setSize(double size) {
		sizeProperty.set(this, size);
	}
	
	public double getSize() {
		return sizeProperty.get(this);
	}
	
	public java.awt.Font getAwtFont() {
		return new java.awt.Font(getFamily(), java.awt.Font.PLAIN, (int)getSize());
	}
}